package com.catering.mapper;

import com.catering.pojo.DEmployeeUser;
import com.catering.pojo.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@Mapper
public interface LoginMapper {

    DEmployeeUser login(@Param("username") String username,@Param("password") String password);

//    void save(@Param("username") String username,@Param("password") String password,@Param("phone") String phone);

    void save(@RequestBody DEmployeeUser dEmployeeUser);

    // 新增方法：根据用户名查询用户是否存在
    DEmployeeUser findByUsername(@Param("username") String username);
}
